package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;
    import flash.utils.*;

    public class SPlayerGuildInfo extends Object implements IMessageBase
    {
        public var playerId:int;
        public var guildId:int;
        public var guildName:String;
        public var level:int;
        public var position:int;
        public var playerNum:int;
        public var contribution:int;
        public var totalContribution:int;
        public var hallLevel:int;
        public var money:int;
        public var resource:int;
        public var bloom:int;
        public var aura:int;
        public var awardItemCode:int;
        public var hadAward:Boolean;
        public var structrueLevel:Dictionary;
        public const _type:int = 12042;
        public static var _regist:SPlayerGuildInfo = new SPlayerGuildInfo(true);

        public function SPlayerGuildInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SPlayerGuildInfo();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.playerId);
            param1.writeInt(this.guildId);
            param1.writeString(this.guildName);
            param1.writeInt(this.level);
            param1.writeInt(this.position);
            param1.writeInt(this.playerNum);
            param1.writeInt(this.contribution);
            param1.writeInt(this.totalContribution);
            param1.writeInt(this.hallLevel);
            param1.writeInt(this.money);
            param1.writeInt(this.resource);
            param1.writeInt(this.bloom);
            param1.writeInt(this.aura);
            param1.writeInt(this.awardItemCode);
            param1.writeBool(this.hadAward);
            DictIntIntHelper.write(param1, this.structrueLevel);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.playerId = param1.readInt();
            this.guildId = param1.readInt();
            this.guildName = param1.readString();
            this.level = param1.readInt();
            this.position = param1.readInt();
            this.playerNum = param1.readInt();
            this.contribution = param1.readInt();
            this.totalContribution = param1.readInt();
            this.hallLevel = param1.readInt();
            this.money = param1.readInt();
            this.resource = param1.readInt();
            this.bloom = param1.readInt();
            this.aura = param1.readInt();
            this.awardItemCode = param1.readInt();
            this.hadAward = param1.readBool();
            this.structrueLevel = DictIntIntHelper.read(param1);
            
        }

    }
}
